package com.suxin.socket.yinfei.session;

import javax.websocket.Session;
import java.util.Collection;

/**
 * @author Tang
 * @classname SessionConnectionHolder
 * @description [ 会话持有接口 ]
 * @date 2021/8/17 22:32
 */
public interface SessionConnectionHolder {

    void onOpen(Session session);

    void onClose(Session session);

    default Collection<Session> getSession(){
        return null;
    }

    default Collection<Session> getSession(String identify) {
        return null;
    }
}
